package com.masq.aboard.controller;

import com.masq.aboard.common.results.CommonResult;
import com.masq.aboard.entity.ManagerUserEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author masq
 * @since 2024-05-02
 */
@RestController
public class TestController {

    @GetMapping("/manager/test")
    public CommonResult<ManagerUserEntity> testManagerUrl() {
        ManagerUserEntity managerUserEntity = new ManagerUserEntity();
        managerUserEntity.setId(1);
        managerUserEntity.setUsername("masq");
        managerUserEntity.setPassword("123456");
        return CommonResult.success(managerUserEntity);
    }

    @GetMapping("/test/getUser")
    public CommonResult<ManagerUserEntity> testCommonUrl() {
        ManagerUserEntity managerUserEntity = new ManagerUserEntity();
        managerUserEntity.setId(1);
        managerUserEntity.setUsername("masq");
        managerUserEntity.setPassword("123456");
        return CommonResult.success(managerUserEntity);
    }
}
